import requestApi from './api'
let authCode = 'bce11724-e075-4be7-bd8c-04bfd0ceed4c'
export default {
	// 获取所有场所信息
	allList: (data) => requestApi({ url: `getSiteInfo/allList/${authCode}`, method: 'post', data }),
	getAllDeviceBySiteId: (data) => requestApi({ url: 'device/getAllDeviceBySiteId', method: 'post', data }),
	// 设备详情
	getSingleDeviceRequest: (data) => requestApi({ url: 'device/getSingleDeviceRequest', method: 'post', data }),
	// 控制开关
	ctlSwitch: (data) => requestApi({ url: 'device/ctlSwitch', method: 'post', data }),
	// 控制门禁
	ctrlDeviceOpenDoor: (data) => requestApi({ url: 'device/ctrlDeviceOpenDoor', method: 'post', data }),
	// 设备日志
	getAllDeviceLog: (data) => requestApi({ url: 'device/getAllDeviceLog', method: 'post', data }),
}